<?php
echo json_encode(array_merge($_POST,$_FILES));